package com.at.bilibili.dao.repository;

import com.at.bilibili.domain.Video;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface VideoRepository extends ElasticsearchRepository<Video, Long> {
    /**
     * 这种写法表示
     * 根据Video实体类中被标识的title与keyword
     * 进行like模糊检索
     */
    // find by title like
    Video findByTitleLike(String keyword);
}
